﻿<%@ Control Language="C#" ClassName="KhachHangDuthuongFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
				<td class="literal">Id:</td>
				<td>
					<asp:HiddenField runat="server" id="dataId" Value='<%# Bind("Id") %>'></asp:HiddenField>
				</td>
			</tr>				
			<tr>
				<td class="literal">Hoi Vien Id:</td>
				<td>
					<asp:HiddenField runat="server" id="dataHoiVienId" Value='<%# Bind("HoiVienId") %>'></asp:HiddenField>
				</td>
			</tr>				
			<tr>
				<td class="literal">Duration:</td>
				<td>
					<asp:TextBox runat="server" ID="dataDuration" Text='<%# Bind("Duration") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataDuration" runat="server" Display="Dynamic" ControlToValidate="dataDuration" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataDuration" runat="server" Display="Dynamic" ControlToValidate="dataDuration" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Start Date:</td>
				<td>
					<asp:TextBox runat="server" ID="dataStartDate" Text='<%# Bind("StartDate", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataStartDate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataStartDate" runat="server" Display="Dynamic" ControlToValidate="dataStartDate" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">End Date:</td>
				<td>
					<asp:TextBox runat="server" ID="dataEndDate" Text='<%# Bind("EndDate", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataEndDate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataEndDate" runat="server" Display="Dynamic" ControlToValidate="dataEndDate" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Brand Id:</td>
				<td>
					<data:EntityDropDownList runat="server" ID="dataBrandId" DataSourceID="BrandIdThuongHieuDataSource" DataTextField="BrandName" DataValueField="BrandId" SelectedValue='<%# Bind("BrandId") %>' AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
					<data:ThuongHieuDataSource ID="BrandIdThuongHieuDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>				
			<tr>
				<td class="literal">Is Active:</td>
				<td>
					<asp:RadioButtonList runat="server" ID="dataIsActive" SelectedValue='<%# Bind("IsActive") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Yes" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>				
			<tr>
				<td class="literal">Chuong Trinh Id:</td>
				<td>
					<data:EntityDropDownList runat="server" ID="dataChuongTrinhId" DataSourceID="ChuongTrinhIdChuongTrinhDataSource" DataTextField="TenChuongTrinh" DataValueField="ChuongTrinhId" SelectedValue='<%# Bind("ChuongTrinhId") %>' AppendNullItem="true" Required="false" NullItemText="< Please Choose ...>" />
					<data:ChuongTrinhDataSource ID="ChuongTrinhIdChuongTrinhDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>				
			<tr>
				<td class="literal">Loai San Pham:</td>
				<td>
					<asp:TextBox runat="server" ID="dataLoaiSanPham" Text='<%# Bind("LoaiSanPham") %>' MaxLength="10"></asp:TextBox>
				</td>
			</tr>				
			<tr>
				<td class="literal">Muc Chiet Khau Td:</td>
				<td>
					<asp:TextBox runat="server" ID="dataMucChietKhauTd" Text='<%# Bind("MucChietKhauTd") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataMucChietKhauTd" runat="server" Display="Dynamic" ControlToValidate="dataMucChietKhauTd" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Muc Chiet Khau Cc:</td>
				<td>
					<asp:TextBox runat="server" ID="dataMucChietKhauCc" Text='<%# Bind("MucChietKhauCc") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataMucChietKhauCc" runat="server" Display="Dynamic" ControlToValidate="dataMucChietKhauCc" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Updated Date:</td>
				<td>
					<asp:TextBox runat="server" ID="dataUpdatedDate" Text='<%# Bind("UpdatedDate", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataUpdatedDate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" />
				</td>
			</tr>				
			<tr>
				<td class="literal">Updated By:</td>
				<td>
					<asp:TextBox runat="server" ID="dataUpdatedBy" Text='<%# Bind("UpdatedBy") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataUpdatedBy" runat="server" Display="Dynamic" ControlToValidate="dataUpdatedBy" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Phan Thuong Id:</td>
				<td>
					<data:EntityDropDownList runat="server" ID="dataPhanThuongId" DataSourceID="PhanThuongIdPhanThuongDataSource" DataTextField="Name" DataValueField="Id" SelectedValue='<%# Bind("PhanThuongId") %>' AppendNullItem="true" Required="false" NullItemText="< Please Choose ...>" />
					<data:PhanThuongDataSource ID="PhanThuongIdPhanThuongDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>				
			<tr>
				<td class="literal">So Bien Ban:</td>
				<td>
					<asp:TextBox runat="server" ID="dataSoBienBan" Text='<%# Bind("SoBienBan") %>' MaxLength="50"></asp:TextBox>
				</td>
			</tr>				
			<tr>
				<td class="literal">Ngay Ky Bien Ban:</td>
				<td>
					<asp:TextBox runat="server" ID="dataNgayKyBienBan" Text='<%# Bind("NgayKyBienBan", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataNgayKyBienBan" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" />
				</td>
			</tr>				
			
		</table>

	</ItemTemplate>
</asp:FormView>


